feat: RFQ exclusivity, Dutch auctions, gasless intents, anti-spam deposits - #441
Merged
james2177 merged 2 commits intoSep 30, 2026
Conversation
… anti-spam deposits - Issue stellar-vortex-protocol#360: Add exclusive_solver and exclusivity_deadline fields to IntentRecord and enforce via check_exclusivity() in accept flows - Issue stellar-vortex-protocol#359: Implement Dutch-auction decay via start_dst_amount and decay_start/end fields, with current_min_dst() calculating real-time minimum output - Issue stellar-vortex-protocol#361: Add submit_intent_signed() for ed25519-verified gasless submissions using per-public-key nonce tracking to prevent replay attacks - Issue stellar-vortex-protocol#362: Add configurable submission_deposit to ProtocolConfig with refund logic on fill/cancel and keeper rewards on expiry via new DataKey::IntentDeposit Add new error codes 36–41 covering exclusivity violations, invalid decay configs, signature verification failures, and deposit-related issues. Introduce new DataKeys for managing deposits and consumed nonces. Helper functions for TTL management and deposit collection/refund. Closes stellar-vortex-protocol#360 Closes stellar-vortex-protocol#361 Closes stellar-vortex-protocol#359 Closes stellar-vortex-protocol#362
|
@Johnero542 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
…-361-362 # Conflicts: # intent_settlement/src/lib.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implementation of four high-priority RFQ features:
submit_intent_signed) #361: Gasless intents via ed25519-signed payloadssubmit_intent#362: Refundable anti-spam deposit on intent submissionChanges
Struct Extensions
IntentRecord: Added exclusive_solver, exclusivity_deadline, start_dst_amount, decay_start, decay_end, submission_nonce, user_public_key fieldsProtocolConfig: Added submission_deposit_token and submission_deposit_amount fieldsNew Functions
submit_intent_signed(): ed25519-verified gasless submission with per-public-key nonce trackingcurrent_min_dst(): Real-time Dutch auction price calculatorcheck_exclusivity(): Verify solver authorization during acceptcollect_deposit()/refund_deposit(): Deposit lifecycle managementError Codes
Added 6 new error codes (36-41) for:
Storage
New DataKey variants for deposit escrow and nonce tracking:
Closes #360
Closes #359
Closes #361
Closes #362